<include file="Public/header" />

<div style="padding:10px;">
	 <div class="ibox-title">
            <h5>{$groupname}:角色编辑</h5>

            <div class="ibox-tools">
                <a class="collapse-link" href="/admin/rbac/index/groupid/{$_GET['groupid']}">
                    <i class="fa fa-chevron-up"></i>返回角色组
                </a>
 
            </div>
        </div>
		<form class="cmzForm" action="{:U("Rbac/roleadd")}" method="post">

				 <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="8">
					<tr>
						<th width="100">角色名称</th>
						<td><input type="text" style="width:500px;" name="name" value="{$data.name}" class="input form-control" id="rolename"></input></td>
					</tr>
					<tr>
						<th>角色描述</th>
						<td><textarea name="remark" rows="2" cols="20" id="remark" class="inputtext form-control" style="height:100px;width:500px;">{$data.remark}</textarea></td>
					</tr>
					<tr>
						<th>是否启用</th>
						<td><input type="radio" name="status" value="1"  <?php if(empty($data['status'])||$data['status']==1){ echo "checked='checked'";} ?>>启用<label>  &nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="status" value="0" <?php if($data['status']==0&&!empty($data['status'])){ echo "checked='checked'";} ?>>禁止</label></td>
					</tr>
				</table>
				<input type="hidden" name="id" value="{$data.id}" />
				<input type="hidden" name="groupid" value="{$_GET['groupid']}">

			<div style="padding-left:5%">
					<a class="btn btn-primary  btn-outline cmzEdit" where="<?php if($id){ echo "id-".$id;} ?>" returnurl="/admin/rbac/index/groupid/{$_GET['groupid']}"  table="role">提交</a>
			</div>
		
		</form>

</div>
